package com.heima.wemedia.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.wemedia.dtos.WmMaterialDto;
import com.heima.model.common.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialService extends IService<WmMaterial> {

    /**
     * 图片上传
     *
     * @param multipartFile
     * @return
     */
    WmMaterial uploadPicture(MultipartFile multipartFile);


    IPage findList(WmMaterialDto wmMaterialDto);

    ResponseResult collect(Long id,int num);

    ResponseResult delete(Long id);
}